package com.ssy.lingxi.order.model.dto;

import com.ssy.lingxi.order.utils.NumberUtil;

import java.io.Serializable;

/**
 * 查询订单物料一级品类Id返回
 * @author 万宁
 * @version 2.0.0
 * @date 2022-01-14
 */
public class OrderProductCategoryDTO implements Serializable {
    private static final long serialVersionUID = -3230282418662897971L;

    public OrderProductCategoryDTO() {
    }

    public OrderProductCategoryDTO(Long productId, Long categoryId) {
        this.productId = NumberUtil.notNullAndPositive(productId) ? productId : 0L;
        this.categoryId = NumberUtil.notNullAndPositive(categoryId) ? categoryId : 0L;
    }

    /**
     * 物料商品Id
     */
    private Long productId;

    /**
     * 物料一级品类Id
     */
    private Long categoryId;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }
}
